#pragma once
#include <iostream>
//using namespace std;

typedef int DataType;

class Stack
{
public:
	void Init();
	void Push(DataType data);
	void Pop();
	DataType Top();
	int Empty();
	int Size();
	void Destroy();
private:
	void CheckCapacity();
private:

	DataType* _array;
	int _capacity;
	int _size;
};

